package com.bi.bitest.bao.entity;

/**
 * Created
 * Author:bi[FR]
 * Date:15-10-21
 */

import org.json.JSONException;
import org.json.JSONObject;

/**
 * "albumId": 344497,
 "coverLarge": "http://fdfs.xmcdn.com/group6/M02/35/45/wKgDhFTg4w_SDkc9AAT-fXngGBY184_mobile_large.jpg",
 "title": "黑先生在麦田咖啡馆",
 "tags": "民谣,80后,文艺",
 "tracks": 117,
 */
public class AlbumBasic {
    private long albumId;
    private String coverLarge;
    private String title;
    private String tags;
    private long tracks;

    public void parseJSON(JSONObject json) throws JSONException {
        if(json!=null){
            albumId=json.getLong("albumId");
            coverLarge=json.getString("coverLarge");
            title=json.getString("title");
            tags=json.getString("tags");
            tracks=json.getLong("tracks");
        }
    }

    public void setAlbumId(long albumId) {
        this.albumId = albumId;
    }

    public void setCoverLarge(String coverLarge) {
        this.coverLarge = coverLarge;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public void setTracks(long tracks) {
        this.tracks = tracks;
    }

    public long getAlbumId() {
        return albumId;
    }

    public String getCoverLarge() {
        return coverLarge;
    }

    public String getTitle() {
        return title;
    }

    public String getTags() {
        return tags;
    }

    public long getTracks() {
        return tracks;
    }
}
